<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<div class="modal-dialog ms-modal-dialog">
  <div class="modal-content">

    <div class="modal-header">
      <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
      <h4 class="modal-title">认证</h4>
    </div>


	  <div class="modal-body">
      <div class="form-group">
          <div id="videoPlayer" style="width: 100%; height: 300px;">
          </div>
        </div>
      </div>

    <form class="form-horizontal ms-form" role="form" method="POST" action="${ctx.host}/userbets/${id}/close" data-validate="true">

      <input type="hidden" name="_method" value="PATCH"/>
      <input type="hidden" name="success" value="" id="success" />
      <input type="hidden" name="reload" value="" id="closeFaild" />
      <input type="hidden" id="afterVedio" value="${userBet.afterVedio}" />
  

      <div class="modal-footer x-modal-footer" style="text-align: center;">
        <button  type="submit" onclick="ba()" class="btn x-btn btn-success">挑战成功</button>
        <button  type="submit" onclick="bc()" class="btn x-btn btn-danger">挑战失败</button>
        <button  type="submit" onclick="bf()" class="btn x-btn btn-primary">重新上传</button>
      </div> 
    </form>
    
  </div>
</div>
<script>
	function ba()  {
		document.getElementById("success").value = true;
		document.getElementById("closeFaild").value = false;
	}
	function bc() {
		document.getElementById("success").value = false;
		document.getElementById("closeFaild").value = false;
	}
	function bf() {
		document.getElementById("success").value = false;
		document.getElementById("closeFaild").value = true;
	}
</script>